package edu.fyvtc.javaweb.demo.service.impl;

import edu.fyvtc.javaweb.demo.mapper.HouseMapper;
import edu.fyvtc.javaweb.demo.model.House;
import edu.fyvtc.javaweb.demo.service.HouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class HouseServiceImpl implements HouseService {

    @Autowired
    private HouseMapper houseMapper;

    @Override
    public Integer insert(House house) {
        return houseMapper.insert(house);
    }

    @Override
    public House selectById(String id) {
        return houseMapper.selectById(id);
    }

//    @Override
//    public Integer countByCondition(House house) {
//        return houseDao.countByCondition(house);
//    }

//    @Override
//    public List<House> selectByLocations(List<String> locations) {
//        return houseDao.selectByLocations(locations);
//    }

}
